package com.shaw.workrecord.service;

import com.shaw.workrecord.entity.PageResponse;
import com.shaw.workrecord.pojo.request.RecordAddRequest;
import com.shaw.workrecord.pojo.request.RecordEditRequest;
import com.shaw.workrecord.pojo.request.RecordPageRequest;
import com.shaw.workrecord.pojo.response.RecordResponse;

public interface IRecordService {

    /**
     * 获取记录分页列表
     * @param request 请求对象
     * @return
     */
    PageResponse<RecordResponse> getRecordPage(RecordPageRequest request);

    /**
     * 新增记录
     * @param request 请求对象
     * @return
     */
    Boolean addRecord(RecordAddRequest request);

    /**
     * 编辑记录
     * @param request 请求对象
     * @return
     */
    Boolean editRecord(RecordEditRequest request);

    /**
     * 删除记录
     * @param id id
     * @return
     */
    Boolean deleteRecord(Integer id);

    /**
     * 获取记录详情
     * @param id id
     * @return
     */
    RecordResponse getRecordDetail(Integer id);
}
